namespace RSSReader.DAL.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddColumns : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Articles", "Title", c => c.String(maxLength: 200));
            AddColumn("dbo.Articles", "Description", c => c.String(maxLength: 2048));
            AddColumn("dbo.Articles", "PublicationDate", c => c.DateTime());
            AddColumn("dbo.Sources", "Title", c => c.String(maxLength: 200));
            AddColumn("dbo.Sources", "Description", c => c.String(maxLength: 2048));
            AddColumn("dbo.Subscriptions", "Title", c => c.String(maxLength: 200));
        }
        
        public override void Down()
        {
            DropColumn("dbo.Subscriptions", "Title");
            DropColumn("dbo.Sources", "Description");
            DropColumn("dbo.Sources", "Title");
            DropColumn("dbo.Articles", "PublicationDate");
            DropColumn("dbo.Articles", "Description");
            DropColumn("dbo.Articles", "Title");
        }
    }
}
